home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / write.z / write
Text File  |  1998-10-20  |  7KB  |  133 lines

  1.  
  2.  
  3.  
  4. WWWWRRRRIIIITTTTEEEE((((1111))))                                                              WWWWRRRRIIIITTTTEEEE((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      write - write to another user
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      wwwwrrrriiiitttteeee user [ line ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _w_r_i_t_e copies lines from your terminal to that of another user.  When
  16.      first called, it sends the message:
  17.  
  18.           MMMMeeeessssssssaaaaggggeeee ffffrrrroooommmm _y_o_u_r_n_a_m_e ((((ttttttttyyyy??))))  [ _d_a_t_e ]............
  19.  
  20.      to the person you want to talk to.  When it has successfully completed
  21.      the connection, it also sends two bells to your own terminal to indicate
  22.      that what you are typing is being sent.
  23.  
  24.      The recipient of the message should write back at this point.
  25.      Communication continues until an end of file is read from the terminal,
  26.      an interrupt is sent, or the recipient has executed "mesg n".  At that
  27.      point _w_r_i_t_e writes EEEEOOOOTTTT on the other terminal and exits.
  28.  
  29.      If you want to write to a user who is logged in more than once, the _l_i_n_e
  30.      argument may be used to indicate which line or terminal to send to (e.g.,
  31.      ttttttttyyyy00000000); otherwise, the first writable instance of the user found in
  32.      ////vvvvaaaarrrr////aaaaddddmmmm////uuuuttttmmmmpppp is assumed and the following message posted:
  33.  
  34.           _u_s_e_r is logged on more than one place.
  35.           You are connected to "_t_e_r_m_i_n_a_l".
  36.           Other locations are:
  37.           _t_e_r_m_i_n_a_l
  38.  
  39.      Permission to write may be denied or granted by use of the _m_e_s_g(1)
  40.      command.  Writing to others is normally allowed by default.  Certain
  41.      commands, such as _p_r(1) disallow messages in order to prevent
  42.      interference with their output.  However, if the user has super-user
  43.      permissions, messages can be forced onto a write-inhibited terminal.
  44.  
  45.      If the character !!!! is found at the beginning of a line, _w_r_i_t_e calls the
  46.      shell to execute the rest of the line as a command.
  47.  
  48.      _wwww_rrrr_iiii_tttt_eeee processes supplementary code set characters according to the locale
  49.      specified in the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable [see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)].
  50.      It will detect non-printable characters before sending them to the user's
  51.      terminal.  Control characters will appear as a `_^^^^' followed by the
  52.      appropriate ASCII character; characters with the high-order bit set will
  53.      appear in meta notation. For example, `_\\\\_0000_0000_3333' is displayed as `_^^^^_CCCC' and
  54.      `_\\\\_3333_7777_2222' as `_MMMM_----_zzzz'.
  55.  
  56.      The following protocol is suggested for using _w_r_i_t_e:  when you first
  57.      _w_r_i_t_e to another user, wait for them to _w_r_i_t_e back before starting to
  58.      send.  Each person should end a message with a distinctive signal (i.e.,
  59.      ((((oooo)))) for ``over'') so that the other person knows when to reply.  The
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. WWWWRRRRIIIITTTTEEEE((((1111))))                                                              WWWWRRRRIIIITTTTEEEE((((1111))))
  71.  
  72.  
  73.  
  74.      signal ((((oooooooo)))) (for ``over and out'') is suggested when conversation is to
  75.      be terminated.
  76.  
  77. FFFFIIIILLLLEEEESSSS
  78.      /var/adm/utmp  to find user
  79.      /sbin/sh  to execute !!!!
  80.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee
  81.               language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).]
  82.  
  83. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  84.      mail(1), mesg(1), pr(1), sh(1), who(1).
  85.  
  86. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  87.      _UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_UUUU_ssss_eeee_rrrr _iiii_ssss _nnnn_oooo_tttt _llll_oooo_gggg_gggg_eeee_dddd _oooo_nnnn_....
  88.           if the person you are trying to _wwww_rrrr_iiii_tttt_eeee to is not logged on.
  89.  
  90.      _UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_PPPP_eeee_rrrr_mmmm_iiii_ssss_ssss_iiii_oooo_nnnn _dddd_eeee_nnnn_iiii_eeee_dddd_....
  91.           if the person you are trying to _wwww_rrrr_iiii_tttt_eeee to denies that permission
  92.           (with _mmmm_eeee_ssss_gggg).
  93.  
  94.      _UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_WWWW_aaaa_rrrr_nnnn_iiii_nnnn_gggg_:::: _cccc_aaaa_nnnn_nnnn_oooo_tttt _rrrr_eeee_ssss_pppp_oooo_nnnn_dddd_,,,, _ssss_eeee_tttt _mmmm_eeee_ssss_gggg _----_yyyy_....
  95.           if your terminal is set to _mmmm_eeee_ssss_gggg _nnnn and the recipient cannot respond
  96.           to you.
  97.  
  98.      _UUUU_XXXX_::::_wwww_rrrr_iiii_tttt_eeee_::::_EEEE_RRRR_RRRR_OOOO_RRRR_::::_CCCC_aaaa_nnnn _nnnn_oooo _llll_oooo_nnnn_gggg_eeee_rrrr _wwww_rrrr_iiii_tttt_eeee _tttt_oooo _uuuu_ssss_eeee_rrrr_....
  99.           if the recipient has denied permission (_mmmm_eeee_ssss_gggg _nnnn) after you had
  100.           started writing.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.